home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000125_jhaines@benplan.com_Mon Dec 2 16:43:00 EST 2002.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
3KB
|
89 lines
Article: 13906 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!news.gtei.net!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: jhaines@benplan.com (John Haines)
Newsgroups: comp.protocols.kermit.misc
Subject: Using C-KERMIT to ftp on a PPP dail-up connection
Date: 2 Dec 2002 12:11:17 -0800
Organization: http://groups.google.com/
Lines: 71
Message-ID: <684be77d.0212021211.49438037@posting.google.com>
NNTP-Posting-Host: 216.136.79.238
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1038859878 28442 127.0.0.1 (2 Dec 2002 20:11:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 2 Dec 2002 20:11:18 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13906
I have been reading the C-KERMIT 8.0 reference and the FAQ, but still
having trouble putting the whole picture together.
I have been using C-KERMIT on AIX for about a year. I need to
transfer a file to another company. They provide access to their FTP
server via PPP dial-up. I am wondering can I use C-KERMIT to dail the
number, redirect to PPP, and then transfer the file using kermit
commands, and close the connection. In the examples from the C-KERMIT
documentation, I noticed they redirect to the pppd daemon, but in AIX
I could only find the pppattachd command to invoke the ppp daemon.
Any help would be appreciated, because at this point I'm not sure what
is possible and what is not possible. I would prefer to accomplish
the whole task using C-KERMIT, but don't know if it is possible. Any
assistance would be appreciated. Thanks in advance for the
enlightenment!
Below is the script that I have developed thus far.
#!/usr/opt/ckermit/ckermit +
set telnet echo remote
set host 10.44.16.3 7001
set modem type generic
set dial hangup off
set exit on-disconnect on
set ftp AUTOAUTHENTICATION ON
set ftp AUTOLOGIN ON
set ftp VERBOSE ON
set ftp DEBUG ON
; Setup modem pool information
.telephone = 9,1-210-226-3232
define modem_userid user
define modem_passwd userpasswd
assign \%u \m(modem_userid)
assign \%p \m(modem_passwd)
; Logon to the modem pool
lineout
sleep 1
lineout
promptwait \m(wait_time) Username:
if fail faterr 1 "ERROR: Can't login to the modem pool. "
lineout \%u
promptwait \m(wait_time) Password:
if fail faterr 1 "ERROR: Can't login to the modem pool. "
lineout \%p ; Send password
undef \%p ; Clear password from memory
; Dail customer number
dial \m(telephone)
; Once connected redirect connection to PPP on AIX
exec /redirect /usr/sbin/pppattachd demand
; Connect to remote customer IP Address
ftp open ftp.mycustomer.com 21 /user:kuser /password:passwd
if fail exit 1 Connection failed: \v(ftp_message)
if not \v(ftp_loggedin) exit 1 Login failed
ftp dir
ftp put /binary benplan.ini
if fail exit 1 ftp PUT benplan.ini : \v(ftp_message)
ftp bye
exit